import dva from 'dva';
import './index.css';

// 1. Initialize
const app = dva({
    initialState:{
        products:[
            {name:"Darius", age:18, id:1},
            {name:"John", age:12, id:2},
        ]
    }
});

// 2. Plugins
// app.use({});

// 3. Model
// app.model(require('./models/example').default);
app.model(require('./models/products').default);

// 4. Router
app.router(require('./router').default);

// 5. Start
app.start('#root');
